package com.xqboss.apps.enums.nft;

import java.util.Objects;

/**
 * @author Administrator
 */

public enum CommonBooleanEnum {
    /**
     * 是
     */
    IS_TRUE(1),
    /**
     * 否
     */
    IS_FALSE(0);

    private int value;

    CommonBooleanEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public static boolean isTrue(Integer value){
        return Objects.equals(value, IS_TRUE.value);
    }
}
